/**
 * @author furthurr
 */
var win = Titanium.UI.currentWindow;
	win.title='Datos Generales';
var menus = Titanium.UI.createTableView({
	height:290,
	width:320
});
var menu1 = Titanium.UI.createTableViewSection({});
var row1 = Titanium.UI.createTableViewRow({});
var view = Titanium.UI.createView({backgroundImage:'derFiscal/BORRAR1.png',width:'320',height:'480'});
row1.height = 'auto';
row1.add(view);
menu1.add(row1);
menus.setData([menu1]);
win.add(menus);
var boton1=Titanium.UI.createButtonBar({
	labels:['Datos Generales','Perfil de Ingreso'],
    style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	top:0,
	left:0,
    backgroundColor:'#336699', 
	height:30,
	width:320,
	});
var boton2=Titanium.UI.createButtonBar({
	labels:['Perfil de Egreso','Plan de Estudios'],
    style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	top:35,
	left:0,
    backgroundColor:'#336699', 
	height:30,
	width:320,
});
win.add(boton1);
win.add(boton2);
//EVENTOS
boton1.addEventListener('click',function (e){
	if (e.index==0){
		win.title='Datos Generales';
		//cambiar
		view.backgroundImage='derFiscal/BORRAR2.png';
		//cambiar
	}
		if (e.index==1){
		win.title='Perfil de Ingreso';
		//cambiar
		view.backgroundImage='derFiscal/BORRAR2.png';
		//cambiar
	}

});
boton2.addEventListener('click',function (e){
	if (e.index==0){
		win.title='Perfil de Egreso';
		//cambiar
		view.backgroundImage='derFiscal/BORRAR2.png';
		//cambiar
	}
		if (e.index==1){
		win.title='Plan de Estudios';
		//cambiar
		view.backgroundImage='derFiscal/BORRAR2.png';
		//cambiar
	}

});